SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I downloaded the newly-released kernel 4.7 series, and as I run NVIDIA hardware, tried to use NVIDIA's latest driver release with it. Unsurprisingly, as is the case with new kernel series releases, it did not compile on the first try. Googling turned up a patch which works superbly.
For those not already in the know, a quick primer:
Download the attached patch file, and place in the directory where the driver is located.
Extract & patch the NVIDIA installer:
Code:
./NVIDIA-Linux-x86_64-367.35.run -x
cd NVIDIA-Linux-x86_64-367.35/
patch -p1 < ../4.7_kernel.patch
After rebooting, go to the extracted directory, and run the installer directly:
I believe you can apply the patch direct to the run file. If you do
Code:
sh NVIDIA...run --help
you get the options available.
I'm going from memory at the moment so forgive me if it's changed now.
From what I can see of the options available, -A was the most relevant. Of those advanced options, only one seemed to apply to this situation:
Quote:
--apply-patch [Patch]
Apply the patch 'Patch' to the kernel interface files included
And it does not give options for patchlevels that I can see. As you can see from my OP, you need at least -p1 to apply the patch, and this option only appears to support -p0. If you can provide further illumination, it would be much appreciated. Thanks!
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627
Rep:
I'm afraid I can't add anything more. I remember using the apply-patch option some years ago.
With this most recent kernel 4.7 I've just extracted the nvidia run file and applied the changes manually.
I'm afraid I can't add anything more. I remember using the apply-patch option some years ago.
With this most recent kernel 4.7 I've just extracted the nvidia run file and applied the changes manually.
That's probably the most sensible thing to do. I can't find anything online or in the help that NVIDIA provides in the .run file that provides anything about increasing the patchlevel. Glad to have been of help!
./NVIDIA-Linux-x86_64-367.35.run -x
cd NVIDIA-Linux-x86_64-367.35/
patch -p1 < ../4.7_kernel.patch
After rebooting, go to the extracted directory, and run the installer directly:
Code:
./nvidia-installer
You should be golden. Happy Slacking!
Regards,
Matt
Glad it worked for you. Does this method only work for Slackware? I'm using openSUSE Tumbleweed and I downloaded the patch, extracted the driver and ran the patch command and nothing happened.
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627
Rep:
Quote:
Originally Posted by petelq
I'm afraid I can't add anything more. I remember using the apply-patch option some years ago.
With this most recent kernel 4.7 I've just extracted the nvidia run file and applied the changes manually.
I remember how I originally applied the patch back then. I added an extra level of folder within the patch and then ran the run file with apply-patch.
My current method is just to open the individual files and apply the changes. There's not many and it only takes a couple of minutes.
Glad it worked for you. Does this method only work for Slackware? I'm using openSUSE Tumbleweed and I downloaded the patch, extracted the driver and ran the patch command and nothing happened.
It's been several years since I ran that distro, back when it was still SuSE (9.1!) and cannot speak for this method in any other distro. However, having said that, it should work, giving you messages about which files it patched.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.